<?php 

/**
*
*
*
*
*/

?>
<div id="vista">

	<table width="90%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td><strong>Material reservado en espera de cierre del pedido </strong></td>
  </tr>
  <tr>
    <td>
	

      <table width="90%"  border="0" align="center" cellpadding="2" cellspacing="2">
        <tr bgcolor="#F0F0F0">
          <td width="83%"><strong>Titulo del material </strong></td>
          <td width="9%"><div align="center">Agregar</div></td>
          <td width="8%"><div align="center">Quitar</div></td>
        </tr>
        <?php
		  //while (!$rs->EOF) {
		  foreach($_SESSION['carro'] as $k => $v){
		  $contador++; 
		?>
        <tr>
          <td><?php echo titulo_libro($v['id_material']); ?></td>
          <td><div align="center"><a href="?mod=reserva&amp;acc=agregar&amp;op=true&amp;id_material=<?php echo $v['id_material']?>"><img src="imagenes/ui/iconos/CheckConstraint.png" width="16" height="16" border="0" /></a></div></td>
          <td><div align="center"><a href="?mod=reserva&amp;acc=borrar&amp;op=true&amp;id_material=<?php echo $v['id_material']?>"><img src="imagenes/ui/iconos/Delete.png" width="16" height="16" border="0" /></a></div></td>
        </tr>
        <?php
			//$rs->MoveNext(); 
		  }
		?>
      </table>
	
	
	  <br />
	  <br />
	  <form id="form1" name="form1" method="post" action="">
	    <div align="center">
	      <input type="submit" name="Submit" value="Reservar este material" />
	      </div>
	  </form>
	  </td>
  </tr>
</table>

    <br />
  <br />
</div>